package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class AAa extends AppCompatActivity implements View.OnClickListener{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_02_first);
        Button b = findViewById(R.id.button2);
        b.setOnClickListener(this);
        Log.e("ming","onCreate");

    }


    @Override
    protected void onStart() {
        super.onStart();
        Log.e("ming","onStart");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.e("ming","onStop");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.e("ming","onRestart");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e("ming","onDestroy");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.e("ming","onResume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.e("ming","onPause");
    }

    @Override
    public void onClick(View v) {
//        Intent intent = new Intent(AAa.this, Bbb.class); 	// 创建Intent对象
//
//        //Intent intent = new Intent(Intent.ACTION_DIAL);
//        startActivity(intent);

    }
}
